<?php

return [
    //超级管理员ID
    'super_user_id' => 1,

    'adminEmail' => 'admin@example.com',

    //CDR记录通话状态
    'cdr_disposition' => [
        'ANSWERED'  => '<span style="color: green">接通</span>',
        'FAILED'    => '<span style="color: red">失败</span>',
        'BUSY'      => '<span style="color: orangered">繁忙</span>',
        'NO ANSWER' => '<span style="color: #666">未应答</span>',
    ],

    //分机状态
    'extension_status' => [
        -1  => '分机不存在',
        0   => '空闲',
        1   => '通话中',
        2   => '置忙',
        4   => '离线',
        8   => '振铃中',
        16  => '通话保持中'
    ],

    //响铃模式
    'ring_strategy' => [
        'ringall'       => '全部',
        'leastrecent'   => '最近呼叫的坐席',
        'fewestcalls'   => '最少呼叫的坐席',
        'random'        => '随机',
        'rrmemory'      => '按顺序：上次执行位置',
        'rrordered'     => '按顺序：队列成员配置',
        'linear'        => '登录顺序（仅用于静态坐席）',
        'wrandom'       => '惩罚随机',
    ],
    //跳过繁忙坐席
    'cwignore' => [
        0 => '否',
        1 => '是',
        2 => '是（无铃声）',
        3 => '仅队列呼叫（无铃声）',
    ],

    //queues_config参数模板
    'queues_config_template' => [
        'ringing'           => 0,
        'ivr_id'            => 'none',
        'agentannounce_id'  => 0,
        'joinannounce_id'   => 0,
        'queuewait'         => 0,
        'use_queue_context' => 0,
        'togglehint'        => 0,
        'qnoanswer'         => 0,
        'callconfirm'       => 0,
        'callconfirm_id'    => 0,
        'monitor_type'      => 'b',
        'monitor_heard'     => 0,
        'monitor_spoken'    => 0,
        'callback_id'       => 'none',

    ],
    //queues_details参数模板
    'queues_details_template' => [
        'maxlen'                        => 0,
        'joinempty'                     => 'yes',
        'leavewhenempty'                => 'no',
        'strategy'                      => 'ringall',
        'timeout'                       => 15,
        'retry'                         => 5,
        'wrapuptime'                    => 0,
        'announce-frequency'            => 0,
        'announce-holdtime'             => 'no',
        'announce-position'             => 'no',
        'queue-youarenext'              => 'silence/1',
        'queue-thereare'                => 'silence/1',
        'queue-callswaiting'            => 'silence/1',
        'queue-thankyou'                => '',
        'periodic-announce-frequency'   => 0,
        'monitor-format'                => '',
        'monitor-join'                  => 'yes',
        'eventwhencalled'               => 'no',
        'eventmemberstatus'             => 'no',
        'weight'                        => 0,
        'autofill'                      => 'no',
        'ringinuse'                     => 'yes',
        'reportholdtime'                => 'no',
        'autopause'                     => 'no',
        'autopausedelay'                => 0,
        'servicelevel'                  => 60,
        'memberdelay'                   => 0,
        'timeoutrestart'                => 'no',
        'skip_joinannounce'             => '',
        'cron_schedule'                 => 'never',
        'autopausebusy'                 => 'no',
        'autopauseunavail'              => 'no',
        'timeoutpriority'               => 'app',
        'penaltymemberslimit'           => 0,
        'answered_elsewhere'            => 0,
    ],

    //字段类型
    'field_type' => [
        'TEXT'      => '字符串',
        'LIST'      => '列表',
        'DATE'      => '日期',
        'TEXTAREA'  => '文本域',
        'LABEL'     => '标签',
    ],
    //任务状态
    'estatus' => [
        'A' => '激活',
        'I' => '未激活',
        'T' => '已完成',
    ],
    //录音格式
    'monitor-format' => [
        'wav49' => 'wav49',
        'wav'   => 'wav',
        'gsm'   => 'gsm',
    ],
    //呼叫号码状态
    'call_status' => [
        'Placing'   =>'<span style="color: #333333">呼叫中</span>',
        'Ringing'   =>'<span style="color: #333333">响铃中</span>',
        'OnQueue'   =>'<span style="color: #333333">队列中</span>',
        'Abandoned' =>'<span style="color: green">成功</span>',
        'Failure'   =>'<span style="color: red">失败</span>',
        'Pending'   =>'<span style="color: #333333">等待中</span>',
        'OnHold'    =>'<span style="color: #333333">呼叫保持</span>',
        'NoAnswer'    =>'<span style="color: #333333">未应答</span>',
    ],

    //百度TTS配置
    'baidu_tts' => [
        'id'        =>  '15143241',
        'key'       =>  'YI8bXhDcthkBrQNRQFDf2iCG',
        'secret'    =>  'NQo5Nk9rEZVAndjthwQd8OtYvNfjBcFM',
    ],

    //asterisk配置目录
    'asterisk' => [
        'etc'           => '/etc/asterisk/',
        //自动拨号目录
        'outgoing'      => '/var/spool/asterisk/outgoing/',
        //录音文件目录
        'monitor'       => '/var/spool/asterisk/monitor/',
        //agi脚本目录
        'agi'           => '/var/lib/asterisk/agi-bin/',
        //声音文件目录
        'sounds'        => '/var/lib/asterisk/sounds/',
        //写入拨号计划的文件
        'extensions_custom'    => 'extensions_custom.conf',

    ],


];
